package com.homedo.odin.solution.dao;

import com.homedo.core.common.base.dao.BaseDao;
import com.homedo.odin.solution.model.entity.UserProfile;
import org.apache.ibatis.annotations.Param;

/**
 * <p> 用户简介 Mapper 接口 </p>
 *
 * @author HarveyDing
 * @since 2018-03-08
 */
public interface UserProfileMapper extends BaseDao<UserProfile> {

    Integer updateBannerByUserId(@Param("userId") Integer userId, @Param("banner") String banner);

    Integer updateIntroductionByUserId(@Param("userId") Integer userId, @Param("introduction") String introduction);

    Integer updateViewCount(@Param("userId") Integer userId, @Param("visitorId") Integer visitorId,
            @Param("add") Integer add);

    Integer updateClickCount(@Param("targetId") Integer targetId, @Param("operationId") Integer operationId,
            @Param("score") Integer score);
}